import request from '@/utils/request'

// 查询仓库区域下拉列表
export function areaSelectList(params) {
  return request({
    url: '/select/areaSelectList',
    method: 'get',
    params,
  })
}

// 查询仓库下拉列表
export function imsSelectList(params) {
  return request({
    url: '/select/imsSelectList',
    method: 'get',
    params,
  })
}

// 查询生产者下拉列表
export function producerSelectList(params) {
  return request({
    url: '/select/producerSelectList',
    method: 'get',
    params,
  })
}

// 查询仓库sku下拉列表
export function skuSelectList(params) {
  return request({
    url: '/select/skuSelectList',
    method: 'get',
    params,
  })
}

// 查询人员下拉列表
export function userSelectList(params) {
  return request({
    url: '/select/userSelectList',
    method: 'get',
    params,
  })
}

// 码头编号查询
export function wharfSelectList(query) {
  return request({
    url: '/select/wharfSelectList',
    method: 'get',
    params: query,
  })
}

// 消费者查询
export function consumerSelectList(query) {
  return request({
    url: '/select/consumerSelectList',
    method: 'get',
    params: query,
  })
}

export function lineStationSelectList(params) {
  return request({
    url: '/select/lineStationSelectList',
    method: 'get',
    params: params,
  })
}

export function shelfSelectList(params) {
  return request({
    url: '/select/shelfSelectList',
    method: 'get',
    params: params,
  })
}

export function getImsWharfOptions(wharfCode) {
  return request({
    url: `/initImsWharf/${wharfCode}`,
    method: 'get',
  })
}
